package unitTests;

import static org.junit.Assert.*;
import mainpackage.CategoryNameNotUniqueException;
import mainpackage.DataManager;

import org.junit.Test;

import utils.DateConverter;

import db.DBCreator;

public class DateConverterTest {

	@Test
	public void validation() throws Exception {
		assertTrue(DateConverter.validateDateFormat("2000/12/11 10:10"));
		assertFalse(DateConverter.validateDateFormat("2000/13/11 10:10"));
		assertFalse(DateConverter.validateDateFormat("2000/10/11 10:65"));
		assertFalse(DateConverter.validateDateFormat("2000/10/11 25:00"));
		assertFalse(DateConverter.validateDateFormat("2000/11/31 10:00"));
		assertFalse(DateConverter.validateDateFormat("2000/00/00 21:00"));
	}
	
}
